package cc.z8g.browser.search.suggestions;

import java.util.List;

import cc.z8g.browser.database.SearchSuggestion;
import io.reactivex.rxjava3.core.Single;

/**
 * A repository for search suggestions.
 */
interface SuggestionsRepository {

    /**
     * Creates a [Single] that fetches the search suggestion results for the provided query.
     *
     * @param rawQuery the raw query to retrieve the results for.
     * @return a [Single] that emits the list of results for the query.
     */
    Single<List<SearchSuggestion>> resultsForSearch(String rawQuery);

}
